<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面未找到 - LiberTool</title>
    <link rel="stylesheet" href="/static/css/style.css">
    <link rel="stylesheet" href="/static/css/light-theme.css">
    <link rel="stylesheet" href="/static/css/dark-theme.css">
    <!-- 引入Bootstrap或其他UI框架 -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入Feather图标 -->
    <script src="/node_modules/feather-icons/dist/feather.min.js"></script>
    <!-- 引入主题切换脚本 -->
    <script src="/static/js/theme.js"></script>
</head>
<body>
    <header class="bg-primary text-white p-3">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <h1><a href="/" class="text-white text-decoration-none">LiberTool</a></h1>
                <div class="d-flex align-items-center">
                    <div class="d-flex align-items-center me-3">
                        <i data-feather="sun" class="text-white"></i>
                        <label class="theme-switch mx-2">
                            <input type="checkbox" id="theme-toggle" onchange="toggleTheme()">
                            <span class="slider"></span>
                        </label>
                        <i data-feather="moon" class="text-white"></i>
                    </div>
                    <a href="/" class="btn btn-outline-light">返回首页</a>
                </div>
            </div>
        </div>
    </header>

    <main class="container my-5">
        <div class="row justify-content-center">
            <div class="col-md-8 text-center">
                <div class="card">
                    <div class="card-body py-5">
                        <h1 class="display-1 text-muted">404</h1>
                        <h2 class="mb-4">页面未找到</h2>
                        <p class="lead mb-4">您访问的页面不存在或已被移除。</p>
                        <a href="/" class="btn btn-primary">返回首页</a>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <footer class="bg-light py-3 mt-5">
        <div class="container text-center">
            <p class="mb-0">© 2023 LiberTool - 个人工具箱</p>
        </div>
    </footer>

    <script>
        // 初始化Feather图标
        document.addEventListener('DOMContentLoaded', function() {
            feather.replace();
        });
    </script>
</body>
</html>